/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.soa.service.busi.wx;

import com.lianzt.commondata.AbstractCommonData;
import com.soa.exception.GlobalException;
import com.soa.service.BaseService;
import org.springframework.stereotype.Service;

/**
 *  车辆续用
 * P90010
 * @author chang
 */
@Service
public class ClxyService extends BaseService{

    @Override
    public String[] keys() {
        return null;
    }

    @Override
    public void execute(AbstractCommonData in, AbstractCommonData inhead, AbstractCommonData out, AbstractCommonData outhead) {
        String id =in.getStringValue("id");
        String jssj = in.getStringValue("jssj").replace("T", " ");
        try {
            //修改用车结束时间
            update("jz_clxy",new Object[]{jssj,id});
            //修改归还用车提醒状态 设为空值
            update("update_yc_xxtx",new Object[]{"",id});
        } catch (Exception e) {
            throw new GlobalException(9001001, e);
        }
    }
    
}
